<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<body>
<p></p>
<button>点击有惊喜</button>
</body>
<script>
    $(document).ready(function(){
        $('button').click(function(){
            htmlobj=$.ajax({url:"/users/test",async:false});
            $('p').html(htmlobj.responseText);
        })
    });
</script>
</html>